package com.gable.exhibition.dao;

import com.gable.exhibition.model.Appoint;
import com.gable.exhibition.view.AppointView;

import java.util.List;
import java.util.Map;

public interface AppointDao {
    int deleteByPrimaryKey(Long appointId);

    int insert(Appoint record);

    int insertSelective(Appoint record);

    Appoint selectByPrimaryKey(Long appointId);

    int updateByPrimaryKeySelective(Appoint record);

    int updateByPrimaryKey(Appoint record);

    List<Appoint> queryAppoints(Appoint appoint);

    /**
     * 根据维修商名称查询
     * @Create user jacky
     * @Create date 2018/2/9
     * @return
     */
    List<AppointView> queryByMaintainerName(AppointView appointView);

    /**
     * 获取最后一条指派记录
     * @param appointView
     * @return
     */
    Appoint queryLastAppoint(AppointView appointView);

    List<Map<String,Object>> phoneCompletion(Map<String,Object> map);
}